package com.gite.nouette.admin.implementation.controller.command;

import com.gite.nouette.admin.contract.controller.ICManager;
import com.gite.nouette.admin.contract.controller.command.ICCommandHandlerModule;
import com.gite.nouette.admin.contract.model.IManager;
import com.gite.nouette.admin.contract.model.command.ICommandHandlerModule;
import com.gite.nouette.admin.contract.view.command.IVCommandHandlerModule;
import com.gite.nouette.admin.implementation.controller.AbstractCCommand;

public abstract class AbstractCCommandHandlerModule<V extends IVCommandHandlerModule<?>, M extends ICommandHandlerModule>
		extends AbstractCCommand<V, M> implements ICCommandHandlerModule<V, M> {

	@Override
	public ICManager getCManager() {
		return (ICManager) getM().getManager();
	}

	@Override
	public void setCManager(ICManager cManager) {
		getM().setManager(cManager);
	}

	@Override
	public IManager getManager() {
		return getCManager();
	}

	@Override
	public void setManager(IManager manager) {
		setCManager((ICManager) manager);
	}
}
